package toubiao.domain.po.business;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

@Entity
@Table(name = "contract_photo")
@PrimaryKeyJoinColumn(name="id")
@DynamicUpdate(true)
public class PoContractPhoto extends PoPhoto{

	private int seqInType;
	
	private PoContract contract;

	public int getSeqInType() {
		return seqInType;
	}

	public void setSeqInType(int seqInType) {
		this.seqInType = seqInType;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "contract_id")
	public PoContract getContract() {
		return contract;
	}

	public void setContract(PoContract contract) {
		this.contract = contract;
	}
	
	
}
